package com.xy.entity;

import java.util.Date;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
/**
 * 产品类型表
 * @author 萧曳
 *
 */
public class ProductType {

	private int productTypeID;
	@NotEmpty(message = "{productType.productTypeName.empty}")
	@Length(message = "{productType.productTypeName.lenth}")
	private String productTypeName;
	@Min(message = "{productType.productTypeStatus.min}", value = 0)
	@Max(message = "{productType.productTypeStatus.max}", value = 1)
	private int productTypeStatus;
	private Date createrTime;
	private int createrID;

	public int getProductTypeID() {
		return productTypeID;
	}

	public void setProductTypeID(int productTypeID) {
		this.productTypeID = productTypeID;
	}

	public String getProductTypeName() {
		return productTypeName;
	}

	public void setProductTypeName(String productTypeName) {
		this.productTypeName = productTypeName;
	}

	public int getProductTypeStatus() {
		return productTypeStatus;
	}

	public void setProductTypeStatus(int productTypeStatus) {
		this.productTypeStatus = productTypeStatus;
	}

	public Date getCreaterTime() {
		return createrTime;
	}

	public void setCreaterTime(Date createrTime) {
		this.createrTime = createrTime;
	}

	public int getCreaterID() {
		return createrID;
	}

	public void setCreaterID(int createrID) {
		this.createrID = createrID;
	}

	@Override
	public String toString() {
		return "ProductType [createrID=" + createrID + ", createrTime=" + createrTime + ", productTypeID=" + productTypeID + ", productTypeName=" + productTypeName + ", productTypeStatus=" + productTypeStatus + "]";
	}

}
